package com.demo.consumer2.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: xiaoxiangjie
 * @Description:
 * @Date: 2021/3/22
 */
@FeignClient(value = "MICROSERVICE-PROVIDER1",fallback = FeignServerImpl.class)
public interface FeignService {

    @GetMapping("provider1Controller/getBookInfo")
    public List getBookInfo(@RequestParam("name") String name);
}
